<template>
    <div class='installb'>
            <van-nav-bar
            title="退出登录"
            left-text="返回"
            left-arrow
            @click-left="onClickLeft"
            />

        <van-cell-group>
  <van-cell title="退出登录"  is-link @click="installa()"/>
</van-cell-group>
            
    </div>
</template>

<script>
import Vue from 'vue';
import { Cell, CellGroup } from 'vant';

Vue.use(Cell);
Vue.use(CellGroup);
export default {
    
    data() {
        
        return {
            
        };
    },
    computed: {},
    watch: {},
    
    methods: {
        onClickLeft() {
            this.$router.go(-1)
        },
        installa(){
            localStorage.removeItem('token');
            this.$router.push('/login')
        },
    },
    
    
    created() {
        
    },
    mounted() {
        
    },
    components: {},
    }
</script>
<style scoped>
    
</style>